/**
 * 对element-ui的notify通知组件进行封装
  */
class Notify {
    static display(title, message,type) {
        Vue.prototype.$notify({
            title: title,
            message: message,
            type: type
        });
    }

    static success(message) {
        Notify.display("操作成功", message,"success");
    }

    static warning(message) {
        Notify.display("警告", message,"warning");
    }

    static error(message) {
        Notify.display("失败", message,"error");
    }

    static info(message) {
        Notify.display("消息通知", message,"info");
    }
}